﻿using HW_PlcLib.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HW_PlcLib.Interface
{
    ///<summary>
    ///描述: PLC返回结果
    ///作者: 孙小同
    ///创建时间: 2024/6/10 22:00:38
    ///</summary>
    public interface IPlcResult
    {
        object Content { get; set; }
        bool Success { get; set; }
        string Message { get; set; }
        Exception Exception { get; set; }
        byte[] ReceiveBuffer { get; set; }
    }

    public interface IPlcResult<T>
    {
        T Content { get; }
        bool Success { get; set; }
        string Message { get; set; }
        Exception Exception { get; set; }
        byte[] ReceiveBuffer { get; set; }
    }
}
